package com.gxuwz.eschool.fragment;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.fragment.app.Fragment;

import com.gxuwz.eschool.Card_chongzhiActivity;
import com.gxuwz.eschool.Card_moneyActivity;
import com.gxuwz.eschool.CardguashiActivity;
import com.gxuwz.eschool.CardjiaoyiActivity;
import com.gxuwz.eschool.CardjieguaActivity;
import com.gxuwz.eschool.GonggaoActivity;
import com.gxuwz.eschool.PayActivity;
import com.gxuwz.eschool.R;
import com.gxuwz.eschool.School;

public class HomeFragment extends Fragment {
    public HomeFragment() {

    }
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }



    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_home, container, false);
        /*return inflater.inflate(R.layout.fragment_home,container,false);*/

        ImageView imageView = view.findViewById(R.id.fukuan);
        ImageView imageView1 = view.findViewById(R.id.yue);
        ImageView imageView2 = view.findViewById(R.id.chongzhi);
        TextView textView = view.findViewById(R.id.home_pay);
        TextView textView1 = view.findViewById(R.id.home_school);
        TextView textView2 = view.findViewById(R.id.home_chongzhi);
        TextView textView3 = view.findViewById(R.id.home_kgs);
        TextView textView4 = view.findViewById(R.id.home_kjg);
        TextView textView5 = view.findViewById(R.id.home_xwgg);
        TextView textView6 = view.findViewById(R.id.home_kjy);
        imageView.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), PayActivity.class);
                startActivity(intent);
            }
        });

        imageView1.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), Card_moneyActivity.class);
                startActivity(intent);
            }
        });

        imageView2.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), Card_chongzhiActivity.class);
                startActivity(intent);
            }
        });

        textView.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), PayActivity.class);
                startActivity(intent);
            }
        });

        textView1.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), School.class);
                startActivity(intent);
            }
        });
        textView2.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), Card_chongzhiActivity.class);
                startActivity(intent);
            }
        });
        textView3.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), CardguashiActivity.class);
                startActivity(intent);
            }
        });
        textView4.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), CardjieguaActivity.class);
                startActivity(intent);
            }
        });
        textView5.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), GonggaoActivity.class);
                startActivity(intent);
            }
        });
        textView6.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), CardjiaoyiActivity.class);
                startActivity(intent);
            }
        });

        return view;
    }
}
